home *** CD-ROM | disk | FTP | other *** search
- /*
- WASTE Demo Project:
- Drag Handlers
-
- Copyright © 1993-1995 Marco Piovanelli
- All Rights Reserved
-
- C port by John C. Daub
- */
-
- #ifndef __WEDEMOAPP__
- #include "WEDemoIntf.h"
- #endif
-
-
- pascal OSErr MyTrackingHandler( DragTrackingMessage message, WindowRef window, void *refCon, DragReference drag )
- {
- #pragma unused (refCon)
-
- DocumentHandle hDocument;
- OSErr err;
-
- if ((window != NULL) && ((hDocument = GetWindowDocument(window)) != NULL))
- err = WETrackDrag( message, drag, (*hDocument)->we );
- else
- err = noErr;
-
- return err;
- }
-
- pascal OSErr MyReceiveHandler( WindowRef window, void *refCon, DragReference drag )
- {
- #pragma unused (refCon)
-
- DocumentHandle hDocument;
- OSErr err;
-
- if ((window != NULL) && ((hDocument = GetWindowDocument(window)) != NULL))
- err = WEReceiveDrag( drag, (*hDocument)->we );
- else
- err = noErr;
-
- return err;
- }